<?php $this->load->view('admin/_header1') ?>
<script language="javascript" type="text/javascript" src="<?php echo site_url('js/flight.js')?>"></script>

<div class="Main">
	<div class="flightbox1">&nbsp;&nbsp;
		<?=lang('home_From')?>:<?php echo $sFromcitycode?><span style="width:35px;"></span>
		<?=lang('home_To')?>:<?php echo $sDestcitycode?><span style="width:35px"></span>
		<?=lang('home_Depart')?>:<?php echo $sDepartDate?>
	</div>
	<?php
	if($goFlightData!="")
	{
		
	?>
	<table border=0 >
		<tr height=35>
			<td width=45 ><?php echo "<img  width=25 height=25 src=\"".site_url("images/airlines/".$argoflight["Airline"].".gif")."\" alt='".$argoflight["Airline"]."' />" ?></td>
			<td width=327 style="font-size:9pt" ><?php
			echo $argoflight["fromportName"]."(".$argoflight["fromport"].")&nbsp;To&nbsp;".$argoflight["destportName"]."(".$argoflight["destport"].")<BR/>";
			echo "Dep:".$sDepartDate."&nbsp;".$argoflight['Depart']."@ Arr:".$sDepartDate."&nbsp;@".$argoflight['Arrival'];
			?></td>
			<td width=150>
				<?php
				echo $argoflight["FlightNo"]."/".$argoflight["class"][0][0]."<BR>";
				echo $argoflight["Plane"].'/'.$argoflight["Stop"];
				?>
			</td>
			<td width=110 ><?php
			$itotalprice=0;
			$itotalprice=$argoflight["class"][0][2];
			$maxseat	=$argoflight["class"][0][1];	
			echo $itotalprice;
			
			//计算总价
			$itotalprice+=$argoflight["OilFee"]+$argoflight["AirportFee"];
			?></td>
			<td width=78><?php echo $argoflight["OilFee"].'+'.$argoflight["AirportFee"]; ?></td>
			<td width=120><?php echo $mainCurrency.":".$itotalprice;?>
				<input type=button name="book" class="btn2" onclick="resetgoFlight(1);" value="<?=lang("ModifyFlight")?>" /></td>
		</tr>
	</table>
	<?php
	}
	?>
	<div id="dvmainflight" style="padding:4px 0 0 4px;">
	</div><!--航班信息显示-->
<div class="clear"></div>
<?php 
	echo form_open('admin/flight/bookflight',array('id' => 'fmbook'));
	
	foreach($_POST as $sname => $svalue){
		echo "<input type=hidden name=\"".$sname."\" value=\"".$svalue."\" id=\"hdn_".$sname."\" />";
	}
	
	echo "<input type=hidden id=\"hdn_goFlight\" value=\"$goFlightData\" name=\"go_flightinfo\"  />";
	echo "<input type=hidden id=\"hdn_backFlight\" value=\"\" name=\"back_flightinfo\"  />";
	
	echo form_close("");
?>
</div>
<script language=javascript >
	$(document).ready(function(){
		ajaxgetFlightinfo("go",gd$("hdn_DepartDate").value);	
	});
</script>
<?php $this->load->view('admin/_footer1') ?>